#ifndef __BOARD_STM32L4R9I_DISCOVERY_H
#define __BOARD_STM32L4R9I_DISCOVERY_H

#ifdef __cplusplus
 extern "C" {
#endif

#include "System.h"

#if(BOARD_TYPE == BOARD_STM32L4R9I_DISCOVERY)

	extern UART_HandleTypeDef huart2;
	extern SRAM_HandleTypeDef hsram1;
	extern OSPI_HandleTypeDef hospi1;
	extern TIM_HandleTypeDef htim3;
	
	#define DEBUG_HANDLE			huart2
	#define SRAM_HANDLE				hsram1
	#define OSPI_HANDLE				hospi1
	#define LCD_BACKLIGHT_HANDLE	htim3
	
	void Board_DebugPortInit(void);
	void Board_DebugPortMspInit(UART_HandleTypeDef* huart);
	void Board_DebugPortMspDeInit(UART_HandleTypeDef* huart);
	
	void Board_SRAMPortInit(void);
	
	void Board_OSPIPortInitt(void);
	
	
	void Board_LcdBackLightPortInit(void);
	void Board_LcdBackLight_MspInit(TIM_HandleTypeDef* tim_pwmHandle);
	void Board_LcdBackLight_MspDeInit(TIM_HandleTypeDef* tim_pwmHandle);
#endif

#ifdef __cplusplus
}
#endif
#endif
